//related to header5.ui
var root = ui("$");// 或者var root = ui("root");
var nf = sm("do_Notification");
var app = sm('do_App');
var page = sm("do_Page");

var back_btn = ui("back_btn");

var gridData = mm("do_ListData");

page.on('back',function(){
	app.closePage();
})

/*****返回按钮*****/
back_btn.on("touch",function(){
	app.closePage();
})


/*****页面标题*****/
root.setMapping({
	// ui的id.ui.属性：绑定到一个变量
	"header_title.text" : "header_title",
})

ui("delete_btn").on('touch',function(){
	nf.confirm("你确定要删除所有系统消息吗？警告：此操作将不可恢复！", "小爱提醒", "是", "否", function(data, e) {
		if(data == 1){
			page.fire('delmessageall');
		}
	})
	
})